<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/header.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑生成器测试表</title>
<script type="text/javascript">
if("${error}"=="0"){
	   closeMyDialog({flag:true});
	 }else if("${error}"=="1"){
	   myAlert("错误信息","${msg}","e");
	 }
	 $(function(){
		 $("#cancelBtn").click(function(){
    		 closeMyDialog();
    	 });
	     $("#saveBtn").click(function(){
	 	     $("form").submit();
		     });
	});
</script>
</head>
<body class="easyui-layout">
    <div data-options="region:'north',border:false" class="editHeadDiv"><span class="icon-tip">&nbsp;&nbsp;&nbsp;</span>&nbsp;提示信息：<font class="requiredmark">*</font>为必填字段！</div>
    <div data-options="region:'center',border:false" class="editContDiv">
      <form action="${base}test/testTable/editTestTable" class="easyui-form" method="post" data-options="novalidate:true">
           <input name="id" value="${testTable.id}" type="hidden"/>
           <table class="editTable">
           <tr>
               <th><font class="requiredmark">*</font>名称：</th>
              <td><input class="easyui-textbox"  name="testName"  data-options="required:true"  validType="remote['${base}test/testTable/validateTestName?id=${testTable.id}','testName']"  value="${testTable.testName}"/></td>
               <th><font class="requiredmark">*</font>编号：</th>
              <td><input class="easyui-textbox"  name="testCode"  data-options="required:true"  validType="remote['${base}test/testTable/validateTestCode?id=${testTable.id}','testCode']"  value="${testTable.testCode}"/></td>
           </tr>
             
           <tr>
               <th><font class="requiredmark">*</font>测试日期：</th>
              <td><input class="easyui-datebox"  name="testDate"  data-options="required:true,formatter:fmtDate,parser:parserDate"  value="${testTable.testDate}"/></td>
               <th><font class="requiredmark">*</font>测试长日期：</th>
              <td><input class="easyui-datetimebox"  name="testDatetime"  data-options="required:true,formatter:fmtDateTime,parser:parserDateTime"  value="<fmt:formatDate value="${testTable.testDatetime}" pattern="yyyy-MM-dd HH:mm:ss" />"/></td>
           </tr>
             
           <tr>
               <th><font class="requiredmark">*</font>状态：</th>
              <td><input class="easyui-combobox"  name="testStatus"  data-options='required:true,valueField:"itemValue",textField:"itemName",data:${DEFAULT},editable:false' 
                    validType="selectRequired['testStatus']" value="${testTable.testStatus}" /></td>
               <th>&nbsp;</th><td>&nbsp;</td>    
           </tr>
             
  
           <tr>
            <th><font class="requiredmark">*</font>描述：</th>
            <td colspan="3"><textarea class="easyui-textbox" data-options="multiline:true,required:true" name="testRemark" style="height:60px;width:94%;">${testTable.testRemark}</textarea></td>
           </tr>
           <tr>
            <th>备注：</th>
            <td colspan="3"><textarea class="easyui-textbox" data-options="multiline:true" name="testNote" style="height:60px;width:94%;">${testTable.testNote}</textarea></td>
           </tr>
    </table>
    </form>
    </div>
	<div data-options="region:'south',border:false" class="editBtnDiv">
	    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width:10%" id="saveBtn">保存</a>
		<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" style="width:10%" id="cancelBtn">取消</a>
	</div>
</body>
</html>